{include file='_header'}
<div class="page-header">当前位置：<span class="text-primary">商城设置</span></div>

    <div class="page-content">
        <form action="" method="post" class="form-horizontal form-validate" enctype="multipart/form-data" >
            <div class="form-group">
                <label class="col-lg control-label">商城名称</label>
                <div class="col-sm-9 col-xs-12">
                    <input type="text" name="data[name]" class="form-control" value="{$data['name']}" required/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg control-label">商城LOGO</label>
                <div class="col-sm-9 col-xs-12">
                    {:tpl_form_field_image2('data[logo]', $data['logo'])}
                    <span class='help-block'>正方型图片</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg control-label">商城简介</label>
                <div class="col-sm-9 col-xs-12">
                    <textarea name="data[description]" class="form-control richtext"rows="5">{$data['description']}</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg control-label">店招</label>
                <div class="col-sm-9 col-xs-12">
                    {:tpl_form_field_image2('data[img]', $data['img'])}
                    <span class='help-block'>商城首页店招，建议尺寸640*450</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg control-label">商城海报</label>
                <div class="col-sm-9 col-xs-12">
                    {:tpl_form_field_image2('data[signimg]', $data['signimg'])}
                    <span class='help-block'>推广海报，建议尺寸640*640</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg control-label">商品列表库存预警</label>
                <div class="col-sm-9 col-xs-12">
                    <input class="form-control" name="data[goodstotal]" value="{$data['goodstotal']}"/>
                    <span class="help-block">当后台商品列表中商品库存小于此值时特殊标记(值为零时不提示)</span>
                </div>
            </div>  
            <div class="form-group">
                <label class="col-lg control-label">图片水印</label>
                <div class="col-sm-9 col-xs-12">
                    <label class="radio-inline">
                        <input type="radio" name="data[iswater]" value='1' {if $data['iswater']==1}checked{/if} /> 开启
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="data[iswater]" value='0' {if $data['iswater']==0}checked{/if} /> 关闭
                    </label>
                </div>
            </div>          
            <div class="form-group">
                <label class="col-lg control-label">图片水印</label>
                <div class="col-sm-9 col-xs-12">
                    {:tpl_form_field_image2('data[imgwater]', $data['imgwater'])}
                    <span class='help-block'>图片水印，建议尺寸200*200，空则不显示</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg control-label"></label>
                <div class="col-sm-9 col-xs-12">
                    <input type="submit" value="提交" class="btn btn-primary"  />
                </div>
            </div>
        </form>
    </div>
{include file='_footer'}